@extends('admin.inc.base')
@section('content')
    <table class="table">
        <tr>
            <th>序号</th>
            <th>名字</th>
            <th>手机</th>
            <th>地址</th>
            <th>投资额度</th>
            <th>回访</th>
            <th>是否处理</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
        @foreach($data as $key => $item)
            <tr>
                <td>{{ $key }}</td>
                <td>{{ $item -> name }}</td>
                <td>{{ $item -> mobile }}</td>
                <td>{{ $item -> address }}</td>
                <td>{{ $item -> quota }}</td>
                <td>{{ $item -> visit }}</td>
                <td>@if($item -> status == 1) <span style="color:red;">已处理</span>@else 未处理 @endif</td>
                <td>{{ $item -> created_at }}</td>
                <td>{{ $item -> updated_at }}</td>
                <td><a href="/administrator/message/{{ $item ->id }}/edit">查看</a>&nbsp;<a href="/administrator/message/{{ $item ->id }}/delete">删除</a></td>
            </tr>
        @endforeach
    </table>

@endsection